package com.comp.service.impl;

import com.comp.dao.jdbc.DepartmentsMapper;
import com.comp.service.DepartmentsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DepartmentsServiceImpl implements DepartmentsService {

    @Autowired
    public DepartmentsMapper departmentsMapper;

    @Override
    public List findAll() {
        return departmentsMapper.findAll();
    }
}